<template>
    <div>爷爷组件</div>
    <hr>
    <ProvideChildren />
</template>
<script setup>
import ProvideChildren from './ProvideChildren.vue';
import { ref,provide } from 'vue';
let money = ref(1000);
let uptadeMoney = (value) => {
    money.value += value;
}
provide('money',money);
provide('uptadeMoney',uptadeMoney);
</script>